import Vue from 'vue'
import App from './App.vue'
import 'normalize.css/normalize.css' // 磨平浏览器差异
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import router from './router'
import ElementUI from 'element-ui'
import store from './store'
import 'element-ui/lib/theme-chalk/index.css'
// 国际化插件
import i18n from '@/i18n'
import '@/style/index.scss'
import './permission.js'

// import 'lib-flexible'
import * as echarts from 'echarts'
// 导入自定义指令
import directives from '@/directives/index.js'
// 富文本编辑器
import VueQuillEditor from 'vue-quill-editor'

// 注册全局组件
import GlobalCom from '@/components/index.js'
Vue.use(GlobalCom)
Vue.use(VueQuillEditor)

for (const key in directives) {
  Vue.directive(key, directives[key])
}

Vue.prototype.$echarts = echarts
Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
